package com.wj.service;

import com.wj.pojo.CustomWorks;
import com.wj.pojo.SubmitWorks;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wj.utils.RespUtil;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wj
 * @since 2022-04-15
 */
@Transactional
public interface ISubmitWorksService extends IService<SubmitWorks> {

    /**
     * 查询所有的提交作品
     * @return
     */
    List<SubmitWorks> getAllSubmitWorks();

    RespUtil addSubmitWorks(Integer[] cids);

    List<CustomWorks> searchWorks(String searchText);
}
